/*
 * Created on 2004-12-30
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package nc.tb.pub;
import java.io.Serializable;

import nc.tb.ufo.sheet.EditControlDelegate;
import nc.vo.pub.lang.UFDateTime;
/**
 * @author tzj
 * 
 * TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
 */
public class SheetObjectLockInfo implements Serializable {
	private BusiObj busiObj;
	private String userName;
	private EditControlDelegate ed;
	private String pkView;

	/**
	 * @return Returns the busiObj.
	 */
	public BusiObj getBusiObj() {
		return busiObj;
	}

	/**
	 * @return Returns the userName.
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param busiObj
	 *            The busiObj to set.
	 */
	public void setBusiObj(BusiObj busiObj) {
		this.busiObj = busiObj;
	}

	/**
	 * @param userName
	 *            The userName to set.
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public EditControlDelegate getEd() {
		return ed;
	}

	public void setEd(EditControlDelegate ed) {
		this.ed = ed;
	}

	public UFDateTime getCheckOutTime() {
		if (getEd().getActivityMills() > 0)
			return new UFDateTime(getEd().getLockSystemTimeMills());
		else
			return null;
	}

	public String getPkView() {
		return pkView;
	}

	public void setPkView(String pkView) {
		this.pkView = pkView;
	}
}